package com.itheima.pattern.command;

import java.util.HashMap;
import java.util.Map;

//订单类
public class Order {
    private int diningTable;//餐桌号
    private Map<String,Integer> foodDic=new HashMap<>();//食物，食物名称，食物数量

    public int getDiningTable() {
        return diningTable;
    }

    public void setDiningTable(int diningTable) {
        this.diningTable = diningTable;
    }

    public Map<String, Integer> getFoodDic() {
        return foodDic;
    }

    public void setFoodDic(String name,int num) {
        foodDic.put(name,num);
    }
}
